The various elements of the structure WaveData have the following values. u16 type; // Waveform Type Always 0x0000. u16 stat; // Status If a loop waveform 0x4000, if a 1 shot waveform 0x0000. u32 freq; // Frequency Calculation Value Numerical value requested with (sampling frequency) * ((180-(original key))/12)^2. u32 loop; // Loop Start Location Loop location calculated from start of sampling data. u32 size; // Sampling Number Sampling end location calculated from start of sampling data. s8 data[size+1]; // Sampling Data Array + 1 After arranging the signed 8 bit/non-compressed sampling data, you need to add the same value as the data in the loop start location. Additionally, you can convert the AIFF format waveform file to this driver's WaveData with the tool aif2agb.exe. |
[ | Back | Programmer's Manual Table of Contents | Using the Sound Driver Table of Contents | ]